package com.jesper.seckill.service;

import com.jesper.seckill.entity.vo.request.PageBaseReq;
import com.jesper.seckill.entity.vo.response.PageBaseResp;
import com.jesper.seckill.entity.vo.response.goods.GoodsVO;
import com.jesper.seckill.entity.po.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sjw
 * @since 2024-01-18
 */
public interface IGoodsService extends IService<Goods> {

    /**
     * 商品分页查询
     */
    PageBaseResp<GoodsVO> pageGoods(PageBaseReq request);

    /**
     * 商品列表查询
     */
    List<GoodsVO> listGoods();

    /**
     * 商品详情
     */
    GoodsVO goodDetail(long goodsId);

    /**
     * 消费mq 秒杀成功的商品信息
     */
    void consumeSeckillMessage(String message);
}
